package com.tinysand.advert.service;

import com.tinysand.advert.exception.AdvertException;
import com.tinysand.advert.support.CreateUserRequest;
import com.tinysand.advert.support.UserCreatedResponse;

/**
 * 用户相关服务接口定义
 *
 * Created By TINY
 * Create Time 2020/2/21
 **/
public interface UserService {

    /**
     * 创建一个用户，并以指定格式返回创建结果
     *
     * @param request 用户创建对象请求 {@link CreateUserRequest}
     * @return 用户创建结果 {@link UserCreatedResponse}
     * @throws AdvertException 业务异常
     */
    UserCreatedResponse createUser(
            CreateUserRequest request) throws AdvertException;
}
